package tue.cse.advanceddatabases.project.db.comment;

import org.dom4j.Element;

public class Comment {
    private Element element;

	public Comment(Element element) {
		this.element = element;
	}
	
	public String getId(){
		return element.elementText("id"); 
	}
	
	public String getComment(){
		return element.elementText("text"); 
	}
	
	public String getDate(){
		return element.elementText("date"); 
	}
	
	public String getUser(){
		return element.elementText("user_id");
	}
}
